package com.iman.manjusri.service;

import java.util.List;
import java.util.Map;

import com.iman.common.support.Page;
import com.iman.manjusri.domain.ArticleBean;
import com.iman.manjusri.vo.ArticlesVo;
import com.iman.manjusri.vo.CaseVo;
import com.iman.manjusri.vo.ShareExpertVo;

 
public interface  ArticlesService {

	
	public Page<ArticlesVo>  listArticles(Map params);


	public Page<ArticlesVo> getArticlesById(Map params);


	Page<CaseVo> listCaseByPage(Map params);


	Page<CaseVo> listTopNewCase(Map params);


	public Page<CaseVo> listTopHotCase(Map params);
	
	/**
	 * 根据条件生成article列表
	 * */
	public List<ArticleBean> getArticleList(Map<String,Object> searchMap);
	
	/**
	 * 根据articleId获取article信息 
	 * */
	public ArticleBean getArticleInfo(Map<String,Object> searchMap);


	Page<CaseVo> getCaseById(Map params);

	public ShareExpertVo commentUserHead(long user_id);

    /**
     * 浏览量 +1
     * @param resource_id
     * @return
     */
	int incrViewCnt(long resource_id);


	/**
     * 获取分享达人列表数据 
     * @param resource_id
     * @return
     */
	Page<ShareExpertVo> shareExpertList(int pageNum, int pageSize);


	public List<CaseVo> listIndexCase(Map params);

}
